package com.yanqu.road.entity.activity.zhenhuan.secondProcess;

import com.yanqu.road.entity.DataObject;
import com.yanqu.road.entity.FieldTypeAnnotation;

@FieldTypeAnnotation(tableName = "t_u_zhenhuan_going_out", desc = "甄嬛传第二阶段出行数据")
public class UserZhenHuanGoingOutData extends DataObject {
    @FieldTypeAnnotation(select = true, update = true, desc = "活动id")
    private int activityId;
    @FieldTypeAnnotation(select = true, update = true, desc = "用户id")
    private long userId;
    @FieldTypeAnnotation(update = true, desc = "地点id")
    private int placeId;
    @FieldTypeAnnotation(desc = "进度")
    private int progress;
    @FieldTypeAnnotation(desc = "累计多少次")
    private int amount;

    public UserZhenHuanGoingOutData() {
    }

    public UserZhenHuanGoingOutData(int activityId, long userId, int placeId) {
        this.activityId = activityId;
        this.userId = userId;
        this.placeId = placeId;
        setInsertOption();
    }

    public int getActivityId() {
        return activityId;
    }

    public void setActivityId(int activityId) {
        this.activityId = activityId;
    }

    public long getUserId() {
        return userId;
    }

    public void setUserId(long userId) {
        this.userId = userId;
    }

    public int getPlaceId() {
        return placeId;
    }

    public void setPlaceId(int placeId) {
        this.placeId = placeId;
    }

    public int getProgress() {
        return progress;
    }

    public void setProgress(int progress) {
        this.progress = progress;
        setUpdateOption();
    }

    public int getAmount() {
        return amount;
    }

    public void setAmount(int amount) {
        this.amount = amount;
        setUpdateOption();
    }
}
